const request = require('request');
const cleanhtml = require('./');

// const link = 'https://www.hbgyl.com.cn/#/index';
const link = 'https://epaper.hubeidaily.net/pad/content/202407/16/content_280977.html';

request(link, (err, res, body) => {
  if (err) throw err;
  const start = Date.now();
  const html = cleanhtml(body);
  console.log(html);
  console.log('\ncostTime:', Date.now() - start, 'ms');
});